CArchive::operator >>

friend CArchive& operator >>(CArchive& ar, CObject* pOb);
  throw (CArchiveException,CFileException,CMemoryException);
friend CArchive& operator >>(CArchive& ar,const CObject* pOb);
  throw (CArchiveException,CFileException,CMemoryException);
CArchive& operator >>(BYTE& by);
  throw (CArchiveException,CFileException);
CArchive& operator >>(WORD& w);
  throw (CArchiveException,CFileException);
CArchive& operator >>(int& i);
  throw (CArchiveException,CFileException);
CArchive& operator >>(LONG& l);
  throw (CArchiveException,CFileException);
CArchive& operator >>(DWORD& dw);
  throw (CArchiveException,CFileException);
CArchive& operator >>(float& f);
  throw (CArchiveException,CFileException);
CArchive& operator >>(double& d);
  throw (CArchiveException,CFileException);

返回值:
可使多个插入运算符在一行上的CArchive参考。

说明:
由归档文件装载确定的对象或主要类型。
如果在类的实现中使用IMPLEMENT_SERIAL宏,然后重载CObject的提取运算符调用被保护的ReadObject函数(带有一个非零的运行时指针)。此函数反过来调用类的Serialize函数。

示例:
int i;
extern CArchive ar;
if(ar.IsLoading( )) ar>>i;

请参阅:CArchive::ReadObject, CObject::Serialize